package com.xiaxiang.xiawan.Home;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.dg.acb.utils.configdata.XXConstants;
import com.xiaxiang.xiawan.FragmentBase;
import com.xiaxiang.xiawan.R;
import com.xiaxiang.xiawan.XXConfigData;


/**
 * Created by mk on 2017/10/17.
 */

public class HomeFragment extends FragmentBase {

    private View view;
    protected HomeFragmentOperator mHomeFragmentOperator;
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        view = inflater.inflate(R.layout.home_fragment, container, false);
        mHomeFragmentOperator = new HomeFragmentOperator(getActivity(), XXConstants.HTTP_HOME_DATA_URL,view);
        mHomeFragmentOperator.initView(R.id.home_showreel_list);
        return view;
    }

    public void onResume(){
        super.onResume();
        mHomeFragmentOperator.onResume();
    }

    @Override
    public void onHiddenChanged(boolean hidden) {
        super.onHiddenChanged(hidden);
        mHomeFragmentOperator.onHiddenChanged(hidden);
    }

}
